Integrand size = 27, antiderivative size = 54 \[ \int \frac {\cos (c+d x) \cot ^3(c+d x)}{(a+a \sin (c+d x))^2} \, dx=-\frac {3 \text {arctanh}(\cos (c+d x))}{2 a^2 d}+\frac {2 \cot (c+d x)}{a^2 d}-\frac {\cot (c+d x) \csc (c+d x)}{2 a^2 d} \]
Time = 1.47 (sec) , antiderivative size = 86, normalized size of antiderivative = 1.59 \[ \int \frac {\cos (c+d x) \cot ^3(c+d x)}{(a+a \sin (c+d x))^2} \, dx=-\frac {\left (\cot (c+d x) (-4+\csc (c+d x))+3 \left (\log \left (\cos \left (\frac {1}{2} (c+d x)\right )\right )-\log \left (\sin \left (\frac {1}{2} (c+d x)\right )\right )\right )\right ) \left (\cos \left (\frac {1}{2} (c+d x)\right )+\sin \left (\frac {1}{2} (c+d x)\right )\right )^4}{2 a^2 d (1+\sin (c+d x))^2} \]
-1/2*((Cot[c + d*x]*(-4 + Csc[c + d*x]) + 3*(Log[Cos[(c + d*x)/2]] - Log[S in[(c + d*x)/2]]))*(Cos[(c + d*x)/2] + Sin[(c + d*x)/2])^4)/(a^2*d*(1 + Si n[c + d*x])^2)
Time = 0.37 (sec) , antiderivative size = 58, normalized size of antiderivative = 1.07, number of steps used = 5, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.185, Rules used = {3042, 3348, 3042, 3236, 2009}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int \frac {\cos (c+d x) \cot ^3(c+d x)}{(a \sin (c+d x)+a)^2} \, dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \int \frac {\cos (c+d x)^4}{\sin (c+d x)^3 (a \sin (c+d x)+a)^2}dx\) |
\(\Big \downarrow \) 3348 |
\(\displaystyle \frac {\int \csc ^3(c+d x) (a-a \sin (c+d x))^2dx}{a^4}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {\int \frac {(a-a \sin (c+d x))^2}{\sin (c+d x)^3}dx}{a^4}\) |
\(\Big \downarrow \) 3236 |
\(\displaystyle \frac {\int \left (a^2 \csc ^3(c+d x)-2 a^2 \csc ^2(c+d x)+a^2 \csc (c+d x)\right )dx}{a^4}\) |
\(\Big \downarrow \) 2009 |
\(\displaystyle \frac {-\frac {3 a^2 \text {arctanh}(\cos (c+d x))}{2 d}+\frac {2 a^2 \cot (c+d x)}{d}-\frac {a^2 \cot (c+d x) \csc (c+d x)}{2 d}}{a^4}\) |
((-3*a^2*ArcTanh[Cos[c + d*x]])/(2*d) + (2*a^2*Cot[c + d*x])/d - (a^2*Cot[ c + d*x]*Csc[c + d*x])/(2*d))/a^4
3.5.27.3.1 Defintions of rubi rules used
Int[((d_.)*sin[(e_.) + (f_.)*(x_)])^(n_.)*((a_) + (b_.)*sin[(e_.) + (f_.)*( x_)])^(m_.), x_Symbol] :> Int[ExpandTrig[(a + b*sin[e + f*x])^m*(d*sin[e + f*x])^n, x], x] /; FreeQ[{a, b, d, e, f, n}, x] && EqQ[a^2 - b^2, 0] && IGt Q[m, 0] && RationalQ[n]
Int[cos[(e_.) + (f_.)*(x_)]^(p_)*((d_.)*sin[(e_.) + (f_.)*(x_)])^(n_)*((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_), x_Symbol] :> Simp[a^(2*m) Int[(d* Sin[e + f*x])^n/(a - b*Sin[e + f*x])^m, x], x] /; FreeQ[{a, b, d, e, f, n}, x] && EqQ[a^2 - b^2, 0] && IntegersQ[m, p] && EqQ[2*m + p, 0]
Time = 0.30 (sec) , antiderivative size = 68, normalized size of antiderivative = 1.26
method | result | size |
parallelrisch | \(\frac {\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )-\left (\cot ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-8 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )+8 \cot \left (\frac {d x}{2}+\frac {c}{2}\right )+12 \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{8 d \,a^{2}}\) | \(68\) |
derivativedivides | \(\frac {\frac {\left (\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{2}-4 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )+6 \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )+\frac {4}{\tan \left (\frac {d x}{2}+\frac {c}{2}\right )}-\frac {1}{2 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}}}{4 d \,a^{2}}\) | \(72\) |
default | \(\frac {\frac {\left (\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{2}-4 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )+6 \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )+\frac {4}{\tan \left (\frac {d x}{2}+\frac {c}{2}\right )}-\frac {1}{2 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}}}{4 d \,a^{2}}\) | \(72\) |
risch | \(\frac {{\mathrm e}^{3 i \left (d x +c \right )}+{\mathrm e}^{i \left (d x +c \right )}+4 i {\mathrm e}^{2 i \left (d x +c \right )}-4 i}{a^{2} d \left ({\mathrm e}^{2 i \left (d x +c \right )}-1\right )^{2}}+\frac {3 \ln \left ({\mathrm e}^{i \left (d x +c \right )}-1\right )}{2 d \,a^{2}}-\frac {3 \ln \left ({\mathrm e}^{i \left (d x +c \right )}+1\right )}{2 d \,a^{2}}\) | \(95\) |
norman | \(\frac {\frac {5 \left (\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{d a}+\frac {5 \left (\tan ^{6}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{d a}+\frac {10 \left (\tan ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{d a}-\frac {1}{8 a d}+\frac {5 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{8 d a}-\frac {5 \left (\tan ^{8}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{8 d a}+\frac {\tan ^{9}\left (\frac {d x}{2}+\frac {c}{2}\right )}{8 d a}+\frac {37 \left (\tan ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{4 d a}+\frac {43 \left (\tan ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{4 d a}}{\left (1+\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{2} a \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )^{3}}+\frac {3 \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{2 d \,a^{2}}\) | \(222\) |
1/8*(tan(1/2*d*x+1/2*c)^2-cot(1/2*d*x+1/2*c)^2-8*tan(1/2*d*x+1/2*c)+8*cot( 1/2*d*x+1/2*c)+12*ln(tan(1/2*d*x+1/2*c)))/d/a^2
Time = 0.26 (sec) , antiderivative size = 93, normalized size of antiderivative = 1.72 \[ \int \frac {\cos (c+d x) \cot ^3(c+d x)}{(a+a \sin (c+d x))^2} \, dx=-\frac {3 \, {\left (\cos \left (d x + c\right )^{2} - 1\right )} \log \left (\frac {1}{2} \, \cos \left (d x + c\right ) + \frac {1}{2}\right ) - 3 \, {\left (\cos \left (d x + c\right )^{2} - 1\right )} \log \left (-\frac {1}{2} \, \cos \left (d x + c\right ) + \frac {1}{2}\right ) + 8 \, \cos \left (d x + c\right ) \sin \left (d x + c\right ) - 2 \, \cos \left (d x + c\right )}{4 \, {\left (a^{2} d \cos \left (d x + c\right )^{2} - a^{2} d\right )}} \]
-1/4*(3*(cos(d*x + c)^2 - 1)*log(1/2*cos(d*x + c) + 1/2) - 3*(cos(d*x + c) ^2 - 1)*log(-1/2*cos(d*x + c) + 1/2) + 8*cos(d*x + c)*sin(d*x + c) - 2*cos (d*x + c))/(a^2*d*cos(d*x + c)^2 - a^2*d)
\[ \int \frac {\cos (c+d x) \cot ^3(c+d x)}{(a+a \sin (c+d x))^2} \, dx=\frac {\int \frac {\cos ^{4}{\left (c + d x \right )} \csc ^{3}{\left (c + d x \right )}}{\sin ^{2}{\left (c + d x \right )} + 2 \sin {\left (c + d x \right )} + 1}\, dx}{a^{2}} \]
Leaf count of result is larger than twice the leaf count of optimal. 115 vs. \(2 (50) = 100\).
Time = 0.23 (sec) , antiderivative size = 115, normalized size of antiderivative = 2.13 \[ \int \frac {\cos (c+d x) \cot ^3(c+d x)}{(a+a \sin (c+d x))^2} \, dx=-\frac {\frac {\frac {8 \, \sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} - \frac {\sin \left (d x + c\right )^{2}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{2}}}{a^{2}} - \frac {12 \, \log \left (\frac {\sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1}\right )}{a^{2}} - \frac {{\left (\frac {8 \, \sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} - 1\right )} {\left (\cos \left (d x + c\right ) + 1\right )}^{2}}{a^{2} \sin \left (d x + c\right )^{2}}}{8 \, d} \]
-1/8*((8*sin(d*x + c)/(cos(d*x + c) + 1) - sin(d*x + c)^2/(cos(d*x + c) + 1)^2)/a^2 - 12*log(sin(d*x + c)/(cos(d*x + c) + 1))/a^2 - (8*sin(d*x + c)/ (cos(d*x + c) + 1) - 1)*(cos(d*x + c) + 1)^2/(a^2*sin(d*x + c)^2))/d
Time = 0.34 (sec) , antiderivative size = 98, normalized size of antiderivative = 1.81 \[ \int \frac {\cos (c+d x) \cot ^3(c+d x)}{(a+a \sin (c+d x))^2} \, dx=\frac {\frac {12 \, \log \left ({\left | \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) \right |}\right )}{a^{2}} + \frac {a^{2} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - 8 \, a^{2} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )}{a^{4}} - \frac {18 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - 8 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 1}{a^{2} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2}}}{8 \, d} \]
1/8*(12*log(abs(tan(1/2*d*x + 1/2*c)))/a^2 + (a^2*tan(1/2*d*x + 1/2*c)^2 - 8*a^2*tan(1/2*d*x + 1/2*c))/a^4 - (18*tan(1/2*d*x + 1/2*c)^2 - 8*tan(1/2* d*x + 1/2*c) + 1)/(a^2*tan(1/2*d*x + 1/2*c)^2))/d
Time = 9.84 (sec) , antiderivative size = 84, normalized size of antiderivative = 1.56 \[ \int \frac {\cos (c+d x) \cot ^3(c+d x)}{(a+a \sin (c+d x))^2} \, dx=\frac {{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2}{8\,a^2\,d}+\frac {3\,\ln \left (\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )\right )}{2\,a^2\,d}-\frac {\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}{a^2\,d}+\frac {{\mathrm {cot}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2\,\left (\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )-\frac {1}{8}\right )}{a^2\,d} \]